/**
 * 手动开启延迟
 * @param {*} duration 
 * @returns 
 */
export default async function (duration) {
    return new Promise(resolve => {
        setTimeout(() => {
            resolve();
        }, duration)
    })
}